package ${package.Entity}.qo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * ${table.comment!} ID查询对象
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Data
@ApiModel(value = "${entity}IdQO对象", description = "${table.comment!}ID查询对象")
public class ${entity}IdQO {

<#-- 获取主键字段信息 -->
<#assign keyField = table.fields[0]>
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyField = field>
        <#break>
    </#if>
</#list>

    <#if keyField.comment?? && keyField.comment?trim?length gt 0>
    @ApiModelProperty(value = "${keyField.comment?trim}", required = true, example = "1")
    @NotNull(message = "${keyField.comment?trim}不能为空")
    <#else>
    @ApiModelProperty(value = "${keyField.propertyName}", required = true, example = "1")
    @NotNull(message = "${keyField.propertyName}不能为空")
    </#if>
    private ${keyField.propertyType} ${keyField.propertyName};
    
}